<div class="lops view">
<h2><?php  __('Lop');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $lop['Lop']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nganh'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($lop['Nganh']['id'], array('controller' => 'nganhs', 'action' => 'view', $lop['Nganh']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Malop'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $lop['Lop']['malop']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('TenLop'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $lop['Lop']['tenLop']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Lop', true), array('action' => 'edit', $lop['Lop']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Lop', true), array('action' => 'delete', $lop['Lop']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $lop['Lop']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Lops', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Lop', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Nganhs', true), array('controller' => 'nganhs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Nganh', true), array('controller' => 'nganhs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sinhviens', true), array('controller' => 'sinhviens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sinhvien', true), array('controller' => 'sinhviens', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Sinhviens');?></h3>
	<?php if (!empty($lop['Sinhvien'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Lop Id'); ?></th>
		<th><?php __('Mssv'); ?></th>
		<th><?php __('TenSV'); ?></th>
		<th><?php __('NgaySinhSV'); ?></th>
		<th><?php __('GioiTinhSV'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($lop['Sinhvien'] as $sinhvien):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $sinhvien['id'];?></td>
			<td><?php echo $sinhvien['lop_id'];?></td>
			<td><?php echo $sinhvien['mssv'];?></td>
			<td><?php echo $sinhvien['tenSV'];?></td>
			<td><?php echo $sinhvien['ngaySinhSV'];?></td>
			<td><?php echo $sinhvien['gioiTinhSV'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'sinhviens', 'action' => 'view', $sinhvien['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'sinhviens', 'action' => 'edit', $sinhvien['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'sinhviens', 'action' => 'delete', $sinhvien['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $sinhvien['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Sinhvien', true), array('controller' => 'sinhviens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
